package com.sulong;

import com.sulong.service.GenerateDocuments;
import freemarker.template.TemplateException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;


import java.io.IOException;

@SpringBootApplication
public class GenerateDatabaseDocumentsApplication {

    public static void main(String[] args) {
        SpringApplication.run(GenerateDatabaseDocumentsApplication.class, args);
    }

    @Bean(initMethod = "generateDocuments")
    public GenerateDocuments generateDocuments() {
        return new GenerateDocuments();
    }



}

